import { _decorator, Component, Node } from 'cc';
import { PoolManager } from '../framework/PoolManager';
const { ccclass, property } = _decorator;

@ccclass('enemyExploded')
export class enemyExploded extends Component {
    // start() {

    // }

    // update(deltaTime: number) {

    // }
    onEnable() {
        this.scheduleOnce(this.popBack, 1);//定时 一秒后回收
    }
    private popBack() {
        PoolManager.instance().putNode(this.node);
        //console.log("effectDes");
    }
}

